import urllib.request
url_page = 'http://www.baidu.com'
#response = urllib.requests.urlopen(url)
#下载网页
# urllib.requests.urlretrieve(url_page,'baidu.html')
# #下载图片
# url_img = 'https://www.google.com.hk/url?sa=i&url=https%3A%2F%2Fzh.pngtree.com%2Ffree-backgrounds-photos%2F%25E9%25A3%258E%25E6%2599%25AF&psig=AOvVaw0Lrv0EkvSBD_5onFLOPv4Q&ust=1713154400204000&source=images&cd=vfe&opi=89978449&ved=0CBIQjRxqFwoTCLjoktXrwIUDFQAAAAAdAAAAABAE'
# urllib.requests.urlretrieve(url_img,'风景.jpg')
url_video = 'https://haokan.baidu.com/2aa73cd1-d1aa-4ba6-a4e4-c2ffc865349d'
urllib.request.urlretrieve(url_video, 'resource/好看视频.mp4')